package com.example.demo.filters.inbound;

import com.netflix.zuul.filters.http.HttpInboundSyncFilter;
import com.netflix.zuul.message.http.HttpRequestMessage;

/**
 * @author sleepforests
 * Created on 2019-06-27
 */
public class InBFilter extends HttpInboundSyncFilter {

    @Override
    public HttpRequestMessage apply(HttpRequestMessage input) {
        System.out.println("InBFilter apply########");

        return input;
    }

    @Override
    public int filterOrder() {
        return 21;
    }

    @Override
    public boolean shouldFilter(HttpRequestMessage msg) {
        return true;
    }
}
